					  <form id="edit" method="POST" action="editCustomer.php">
                        <input type="hidden" name="client_id" value ="<?php echo $client['id']; ?>" />
						<div class="pop-ups-container">
                        <h1>تعديل العميل</h1>
                        <hr />
						
                        <table class="edit-client-table">
                            	<tr>
                                    <td>الاسم</td>
                                    <td>:&nbsp; <input type="text" class="small-input" name="name" value="<?php echo $client['name']; ?>"></td>
                                </tr>
                                <tr>
                                    <td>نوع العميل</td>
                                    <td>:&nbsp; 
                                      <select class="small-select" name="client_type">
                                        <?php 
                                        $i = 1;
                                        foreach($client_type as $type)
                                        {
                                          if($i == $client['client_type'])
                                            echo "<option selected='selected' value='{$i}'>{$type}</option>";
                                          else
                                            echo "<option value='{$i}'>{$type}</option>";
                                          
                                          $i++;
                                        }
                                      ?>
                                      </select>
                                    </td>
                                </tr>
                                <tr>
                                  <td>الجنسية</td>
                                  <td>:&nbsp; 
                                    <select class="small-select" name="nationality">
                                      <?php 
                                          foreach($nationalities as $natio)
                                          {
                                            if($natio['nationality_id'] == $client['nationality'])
                                              echo "<option selected='selected' value='{$natio['nationality_id']}'>{$natio['nationality_value']}</option>";
                                            else
                                              echo "<option value='{$natio['nationality_id']}'>{$natio['nationality_value']}</option>";
                                          }
                                      ?>
                                    </select>
                                  </td>
                                </tr>
                                <tr>
                                    <td>نوع الإثبات</td>
                                    <td>:&nbsp; 
                                      <select class="small-select" name="identification_type">
                                        <?php if($client['identification_type'] == 'بطاقة اقامه'){ ?>
                                          <option selected = "selected" value="بطاقة اقامه">بطاقة اقامه</option>
                                        <?php }else{ ?>
                                          <option selected = "selected" value="بطاقة اقامه">بطاقة اقامه</option>
                                        <?php }if($client['identification_type'] == 'جواز سفر'){ ?>
                                          <option selected = "selected" value="جواز سفر">جواز سفر</option>
                                        <?php }else{ ?>  
                                          <option value="جواز سفر">جواز سفر</option>
                                        <?php } ?>  
                                      </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td>نسخة البطاقة</td>
                                    <td>:&nbsp; 
                                        <select class="small-select" name="card_copy">
                                          <?php for($i = 1;$i<11;$i++)
                                            if($i == $client['card_copy'])
                                              echo "<option selected='selected' value='{$i}'>{$i}</option>";
                                            else
                                              echo "<option value='{$i}'>{$i}</option>";
                                          ?>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td>رقم الإثبات</td>
                                    <td>:&nbsp; <input type="text" class="small-input" name="identification_number" value="<?php echo $client['identification_number']; ?>" /></td>
                                </tr>
                                <tr>
                                    <td>مكان الإصدار</td>
                                    <td>:&nbsp; <input type="text" class="small-input" name="publication_place" value="<?php echo $client['publication_place']; ?>" /></td>
                                </tr>
                                <tr>
                                    <td>تاريخ الإنتهاء</td>
                                    <td>:&nbsp; <input type="text" class="small-input" name="expiry_date" value="<?php echo $client['expiry_date']; ?>" /></td>
                                </tr>
                                <tr>
                                    <td>جوال</td>
                                    <td>:&nbsp; <input type="text" class="small-input" name="mobile" value="<?php echo $client['mobile']; ?>" /></td>
                                </tr>
                                <tr>
                                    <td>هاتف العمل</td>
                                    <td>:&nbsp; <input type="text" class="small-input" name="phone" value="<?php echo $client['phone']; ?>"  /></td>
                                </tr>
                                <tr>
                                    <td>البريد الالكتروني</td>
                                    <td>:&nbsp; <input type="text" class="small-input" name="email" value="<?php echo $client['email']; ?>"  /></td>
                                </tr>
                                <tr>
                                    <td>جهة العمل</td>
                                    <td>:&nbsp; <input type="text" class="small-input" name="workplace" value="<?php echo $client['workplace']; ?>" /></td>
                                </tr>
                                    <td>العنوان</td>
                                    <td>:&nbsp; <input type="text" class="small-input" name="adress" value="<?php echo $client['adress']; ?>" /></td>
                                </tr>
                                <tr>
                                    <td>ملاحظات</td>
                                    <td> <textarea style="height:70px;" tabindex="29" cols="20" rows="2" name="Notes" value="<?php echo $client['Notes']; ?>"></textarea></td>

                                </tr>
                        </table>
                        <div class="edit-button">تعديل</div>
                      </div>  
					  </form>
